package com.qiezikaka.kaka.http;

import com.qiezikaka.kaka.bean.HomeCateInfo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface HttpUrl {

    public static final String API_PATH = "http://apii.zyhjz188.com/v1/";


    /**
     * 获取tab
     */
    private void getTabCata() {
        Map<String, String> getParams = new HashMap<>();
        HttpClient.get(HttpUrl.API_PATH + "document/cate", getParams, HomeCateInfo.class, new HttpClient.HttpResponseCallback<HomeCateInfo>() {
            @Override
            public void onSuccess(HomeCateInfo data) {
                List<HomeCateInfo.DataBean> cateList = data.getData();


            }

            @Override
            public void onFailure(String error) {
            }
        });
    }

    private void getBannerData() {
//        Map<String, String> getParams = new HashMap<>();
//        getParams.put("type", "1");
//        HttpClient.get(HttpUrl.API_PATH + "article/banner", getParams, BannerInfo.class, new HttpClient.HttpResponseCallback<BannerInfo>() {
//            @Override
//            public void onSuccess(BannerInfo data) {
//
//            }
//            @Override
//            public void onFailure(String error) {
//            }
//        });
    }

}
